﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T05_classType
{
    class Program
    {
        static void Main(string[] args)
        {
            Book b1 = new Book();
            b1.name = "《中国文化史》";
            b1.page = 24;
            b1.price = 99.9;
            Console.WriteLine("{0}共{1}页，价格{2}元", b1.name, b1.page, b1.price);
            Book b2 = b1;//b1与b2指向统一内存区域
            b2.price = 120;
            Console.WriteLine("{0}共{1}页，价格{2}元", b1.name, b1.page, b1.price);
            Console.ReadKey();
        }
    }
    /// <summary>
    /// Book类：用来描述系统中数据库实体类
    /// </summary>
    class Book
    {
        public int page;
        public string name;
        public double price;
        //ctrl+r r 重命名

    }
}
